IEnumerable.GetEnumerator Method

Task Parallel System.Threading

Provides an IEnumerator for items in the collection.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Private Function GetEnumerator As IEnumerator
	Implements IEnumerable.GetEnumerator
C#
IEnumerator IEnumerable.GetEnumerator()

Return Value

An IEnumerator for the items in the collection.

Implements

IEnumerable..::.GetEnumerator()()()

Exceptions

ExceptionCondition
System..::.ObjectDisposedExceptionThe BlockingCollection<(Of <(T>)>) has been disposed.

See Also